<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>{% block title %} {{ config.blog_title|escape }} {% endblock %}</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<meta name="generator" content="blog on GAE" />
		{% block description %}<meta name="description" content="{{ config.site_description }}" />{% endblock %}
		{% block keywords %}<meta name="keywords" content="{{ config.site_keywords }}" />{% endblock %}
		<meta name="author" contect="No.0023@gmail.com">
		<meta name="robots" contect="all|none|index|noindex|follow|nofollow">
		<link rel="icon" type="image/ico" href="/favicon.ico">
		{% block feed %}
		<link rel="alternate" type="application/rss+xml" title="{{ config.blog_title }}" href="{{ base_url }}/feed" />
		{% endblock %}
		{% block style %}
		<link rel="stylesheet" type="text/css" href="{{ theme.dir }}/style.css" />
		{% endblock %}
		<script type="text/javascript" src="/static/scripts/jquery.js"></script>
		<script type="text/javascript" src="/static/scripts/blog.js"></script>
		{% block scripts %}
		{% endblock %}
	</head>
	<body>
		<div id="wrapper">
			<div id="header">
				<div id="login">
					{% if self.is_login %}
					{{ self.user }} | <a href="/blog/logout" title="登出您的google帐号">登出</a>
					{% else %}
					<a href="/blog/login" title="登录, 使用google帐号登录后您可以发表评论">登录</a>
                    使用google帐号登录后您可以发表评论
					{% endif %}
				</div>

				{% block header %}
				{% include theme.header_part %}
				{% endblock %}
			</div>

			<div id="headerbar">
				{{ config.custom_header|default_if_none:"" }}
			</div>

			<div id="menu">
				{% block menu %}
				{% include theme.menu_part %}
				{% endblock %}
			</div>

			<div id="page">
				<div id="content">
					{% block content %}
					{% endblock %}
				</div>
				<div id="sidebar" class="sidebar">
					<ul>
						{% block sidebar %}
						{{ self.widget.render_sidebar }}
						{% endblock %}
					</ul>
				</div>
				<br style="clear:both" />
			</div>
			<div id="footerbar">
				{{ config.custom_footer|default_if_none:"" }}
			</div>
			<div id="footer">
				{% block footer %}
				{% include theme.footer_part %}
				{% endblock %}
			</div>
		</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4950427-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

	</body>
</html>
